package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.AddLiveGoodsBeen;
import cn.xfdzx.android.apps.shop.bean.AddressListBeen;
import cn.xfdzx.android.apps.shop.bean.DeleteAddressBeen;
import cn.xfdzx.android.apps.shop.bean.StoreGoodsListBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface VideoGoodContract {
    interface Model {
        Flowable<StoreGoodsListBeen> initStoreGoodsData(String page, String limit,String keyword);
        Flowable<AddLiveGoodsBeen> initAddLiveGoodsData(String live_id,String goods_ids);

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onInitSuccess(StoreGoodsListBeen bean);
        void onAddLiveGoodsDataSuccess(AddLiveGoodsBeen bean);
           /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();
    }

    interface Presenter {
        /**

         */
        void initStoreGoodsAddress(boolean isRefresh, boolean isLoading, String page, String limit,String keyword);

        void addLiveGoods(String live_id,String goods_ids);

    }
}
